FormGen is a generator for a form layout. It takes the name of an interactor variable (any exported record) as input and creates a default layout for the fields of the interactor. The following list describes the mapping from field types to controls.
SHORTINT, INTEGER, LONGINT Field
REAL, LONGREAL Field
ARRAY OF CHAR Field
BOOLEAN CheckBox
PROCEDURE PushButton
Dates.Date DateField
Dates.Time TimeField
Dialog.Color ColorField
Dialog.Currency Field
(extension of) Dialog.Enumeration ListBox
(extension of) Dialog.Combo ComboBox
(extension of) Dialog.Selection SelectionBox
(extension of) Dialog.LargeSet SelectionBox
VAR new
Interactor for the form generator dialog.
link: Dialog.String
The name of the interactor for which a default layout should be generated. The name must be an identifier qualified with the module name, e.g. "FormGen.new".
Create: PROCEDURE
Create a default layout for the interactor specified in link.